package com.sgcc.pda.mdrh.task.safe.entity;

import com.sgcc.pda.sdk.entity.BaseEntity;

import java.io.Serializable;

/**
 * 描述：工作票验证结果
 * 作者：jianiuqi 2020-09-17 15:34
 */
public class TicketResult extends BaseEntity implements Serializable {

    private VerifyDetail DTS;

    public TicketResult() {

    }

    public TicketResult(String code, String msg) {
        super.RT_F = code;
        super.RT_D = msg;
    }

    public TicketResult(String code, String msg, VerifyDetail detail) {
        super.RT_F = code;
        super.RT_D = msg;
        this.DTS = detail;
    }

    public static class VerifyDetail implements Serializable {

        //验证是否通过
        private boolean checked;

        //是否需要申请工作票
        private boolean needWorkTicket;

        //工作票状态 01待提交 02待签发 03待许可 04待终结 05已终结 20间断
        private String workTicketState;

        public VerifyDetail(boolean checked, boolean needWorkTicket, String workTicketState) {
            this.checked = checked;
            this.needWorkTicket = needWorkTicket;
            this.workTicketState = workTicketState;
        }

        public boolean isChecked() {
            return checked;
        }

        public void setChecked(boolean checked) {
            this.checked = checked;
        }

        public boolean isNeedWorkTicket() {
            return needWorkTicket;
        }

        public void setNeedWorkTicket(boolean needWorkTicket) {
            this.needWorkTicket = needWorkTicket;
        }

        public String getWorkTicketState() {
            return workTicketState;
        }

        public void setWorkTicketState(String workTicketState) {
            this.workTicketState = workTicketState;
        }
    }

    public VerifyDetail getDTS() {
        return DTS;
    }

    public void setDTS(VerifyDetail DTS) {
        this.DTS = DTS;
    }
}
